import { useMemberStore } from "@/stores";
import { BaseURL } from "@/stores/modules/base";
import type { Contribute } from "@/types/mycontribute";
import { httpR2 } from "@/utils/http";


export const getContributeDetailAPI = (id: number) => {
  return httpR2<Contribute>({
    method: "POST",
    url: BaseURL + "/user/contribute" + "/" + id,
    header: {
      authorization: useMemberStore().profile.authorization,
    },
    data: {},
  });
};
